﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Edc.MantisClient
{
    [Serializable]
    public class MantisException : ApplicationException
    {
        public ErrorCode ErrorCode { get; set; }

        public MantisException(ErrorCode errorCode, string message)
            : base(message)
        {
            this.ErrorCode = errorCode;
        }
    }

    public enum ErrorCode
    {
        // Codici custom.
        AuthenticationFailed = -1,

        // Codici originali.
        IssueNotFound = 1100,
        IssueReadOnly = 1103
    }
}
